home *** CD-ROM | disk | FTP | other *** search
-
-
-
- FSATTACH User Commands FSATTACH
-
-
-
- _________________________________________________________________
-
- NNAAMMEE
- fsattach - Check disks and export prefixes
-
- SSYYNNOOPPSSIISS
- ffssaattttaacchh [_o_p_t_i_o_n_s]
-
- OOPPTTIIOONNSS
- --mm _f_i_l_e Read mount table from _f_i_l_e.
-
- --WW Check disks, but do not write changes.
-
- --ff Don't check disks (fastboot).
-
- --ss Ignore group information found in mount table
- and run ffsscchheecckk sequentially.
-
- --vv Have both ffssaattttaacchh and ffsscchheecckk output ver-
- bose information while running.
-
- --nn Don't attach disks or export prefixes.
-
- --pp Print out actions but don't execute them.
-
- --hheellpp Print a summary of the command-line options
- and exit.
-
- --dd _d_e_v_i_c_e_D_i_r_e_c_t_o_r_y
- Specifies the directory containing the device
- files. The default is "/dev".
-
- --kk Produce debugging output.
-
- --ii _s_p_r_i_t_e_I_D Causes prefixes that this machine will export
- to be preloaded into the prefix table. This
- prevents the machine from broadcasting for
- its own prefixes while the disks are being
- checked.
-
- --jj _m_a_x_J_o_b_s The default behavior is for ffssaattttaacchh to run
- as many ffsscchheecckk jobs in parallel as it can.
- The parallelism is limited by the _g_r_o_u_p of
- each device (see below), and the --jj flag. If
- this flag is used then at most _m_a_x_J_o_b_s
- _f_s_c_h_e_c_ks will be run at a time.
-
- --ffsscchheecckk _f_s_c_h_e_c_k_P_r_o_g
- Use this to specify an alternative fscheck
- program, i.e. when testing a new fscheck.
-
- --cc 15 Conditionally check the disks. If the disks
-
-
-
- Sprite v.1.0 Printed: January 23, 1991 1
-
-
-
-
-
-
- FSATTACH User Commands FSATTACH
-
-
-
- were just checked by _f_s_c_h_e_c_k and we are now
- rebooting, then we don't have to check again.
- If the --cc flag is present then the disks
- won't be rechecked.
-
- _________________________________________________________________
-
-
- DDEESSCCRRIIPPTTIIOONN
- FFssaattttaacchh is used during system boot to check the disks for
- inconsistencies and to export prefixes. The input to ffssaatt--
- ttaacchh is a mount table, usually in /_h_o_s_t_s/$_H_O_S_T/_m_o_u_n_t. The
- location of the mount table is specified by the --mm option.
- FFssaattttaacchh uses the pass information in the mount table to
- create child processes that check the disk partitions using
- ffsscchheecckk. The output from ffsscchheecckk is appended to a file with
- the same name as the device and the suffix ".fsc". If
- ffsscchheecckk completes normally, then the filesystem is mounted
- and its prefix exported.
-
- MMOOUUNNTT TTAABBLLEE
- The mount table contains information on checking the disks
- and on exporting prefixes. Each line in the table consists
- of a command and its arguments. Blank lines and lines that
- begin with '#' are ignored. The AAttttaacchh command is used to
- check a disk partition and to attach the partition to the
- file system. AAttttaacchh commands have the following format:
-
- AAttttaacchh _p_r_e_f_i_x _d_e_v_i_c_e _g_r_o_u_p _s_c_o_p_e _a_c_c_e_s_s
-
- _P_r_e_f_i_x is the prefix under which to mount the partition.
-
- The _d_e_v_i_c_e is the device on which to run fscheck and to
- attach.
-
- The _g_r_o_u_p parameter is used to determine the parallelism in
- checking the disks. FFsscchheecckk is a very IO constrained appli-
- cation. Most of the execution time is spent waiting for the
- disk. If the system has more than one disk the overall run
- time of ffssaattttaacchh can be decreased by checking different
- disks at the same time. _F_s_a_t_t_a_c_h will run jobs in parallel
- if possible. Any partitions that are in the same group
- will NOT be checked in parallel. A group name is any
- sequence of characters and is case sensitive. The group
- name "root" has special significance. It is used as the
- group of the root partition. This partition is checked
- before all other partitions, and the server may have to
- reboot if an error is found in this partition.
-
- The _s_c_o_p_e can be either local or export. Partitions with
- local scope are attached only for the local machine, whereas
- partitions with export scope are attached and exported under
- the given prefix. The prefix corresponding to the root par-
- tition (usually /bootTmp) is attached during system boot and
-
-
-
- Sprite v.1.0 Printed: January 23, 1991 2
-
-
-
-
-
-
- FSATTACH User Commands FSATTACH
-
-
-
- is not reattached by ffssaattttaacchh. For this partition the scope
- parameter does not have any effect.
-
- The _a_c_c_e_s_s is used to set the access permissions of the pre-
- fix. If the access is "r" then the prefix is read only. If
- the access is "rw" then the prefix is can be both read and
- written. The access parameter has no effect if the parti-
- tion is the root partition.
-
- The EExxppoorrtt command is used to export a prefix under a dif-
- ferent name. EExxppoorrtt commands have the following format:
-
- EExxppoorrtt _p_r_e_f_i_x _l_o_c_a_l_P_a_t_h
-
- _P_r_e_f_i_x is the name of the prefix to be exported.
-
- _L_o_c_a_l_P_a_t_h is the name of a path that is to be exported as
- _p_r_e_f_i_x.
-
- All other non-comment lines are interpreted as containing
- arguments to ffsscchheecckk. The format of these lines is:
-
- _d_e_v_i_c_e_N_a_m_e [_a_r_g_u_m_e_n_t_s]
-
- _D_e_v_i_c_e_N_a_m_e is the name of the device for which ffsscchheecckk is to
- use the _a_r_g_u_m_e_n_t_s. A device name of aallll will cause ffsscchheecckk
- to use the arguments for all devices. Any number of argu-
- ments can follow the device name, as long as they fit on a
- single line. The same device name can appear on any number
- of lines.
-
- The following is a sample mount table. The root partition is
- /_d_e_v/_r_s_d_0_a and it is exported under the prefix /_t_1. /_t_2 is
- another small partition on the same disk. /_b is a large par-
- tition on the disk, and /_a is a large partition that is an
- entire second disk.
-
- #<Command> <Prefix> <Device/Path> <Group> <Scope> <Access>
-
- Attach /t1 /dev/rsd0a root export rw
- Attach /t2 /dev/rsd0b A export rw
- Attach /b /dev/rsd0g A export rw
- Attach /a /dev/rsd1c B export rw
-
- Export /foo /t2
-
- #<Device> <Arguments to fscheck>
-
- all -readBlock 10
- /dev/rsd0b -outputFile foo
-
-
-
-
-
- Sprite v.1.0 Printed: January 23, 1991 3
-
-
-
-
-
-
- FSATTACH User Commands FSATTACH
-
-
-
- RREETTUURRNN CCOODDEESS
- FFssaattttaacchh returns one of the following codes upon exit.
-
- 0 No error.
-
- 1 An error was found in the root partition. Reboot the
- system. See ffsscchheecckk for details.
-
- 2 A hard error occurred. There was some problem in either
- ffssaattttaacchh, ffsscchheecckk, or pprreeffiixx that prevented ffssaattttaacchh
- from completing normally.
-
- 3 FFsscchheecckk returned a soft error indication. See ffsscchheecckk
- for details.
-
- 4 An error was found in the root partition, but the
- number of consecutive times that ffsscchheecckk was run and an
- error found exceeds the limit.
-
- FFIILLEESS
- /boot/cmds/fscheck command to check disks
- /hosts/$HOST/*.fsc output from fscheck
- /bootTmp/.fscheck.out temporary output from fscheck
-
- KKEEYYWWOORRDDSS
- fsattach, fscheck, prefix, mount, disk, partition, crash,
- attach, boot
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Sprite v.1.0 Printed: January 23, 1991 4
-
-
-
-